package com.yyl.common.constant.Class;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.io.Resource;
import org.springframework.stereotype.Component;

import java.util.List;

@Component("pca")
public class ProvinceCityArea {

    @Value("classpath:static/pca.json")
    private Resource jsonData;

    List<Area> areaList;


    // 区域
    class Area{
        String id;
        String text;
        String pid;

        public Area(String id,String text,String pid){
            this.id=id;
            this.text=text;
            this.pid=pid;
        }
        public String getId(){
            return id;
        }
        public String getText(){
            return text;
        }

        public String getPid() {
            return pid;
        }
    }
}
